package com.zx.mes.hyl.weather;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;
/**
 * 启动类
 * @EnableFeignClients(basePackages = {"com.zx.mes.feign.hyl.feign"})
 * 上面注解解决引用独立feign模块打不到类的问题
 * @author hyl
 * @date 2018-3-1
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(value = {"com.zx.mes.feign.hyl.feign","com.zx.mes.hyl.weather"})
@EnableFeignClients(basePackages = {"com.zx.mes.feign.hyl.feign"})
@EnableCircuitBreaker
@EnableHystrixDashboard
public class WeatherApplication {

    public  static  void main(String [] args){
        SpringApplication.run(WeatherApplication.class, args);
    }
}
